package com.example.administrator.exkotlin.jetpack.room.dao

import androidx.room.Dao
import androidx.room.Insert
import androidx.room.Query
import com.example.administrator.exkotlin.jetpack.room.entity.Book
/**
 * Author by lp,on 2020/11/19/019,17:00.
 */
@Dao
interface BookDao {
    @Insert
    fun insertBook(book:Book):Long

    @Query("select * from Book")
    fun loadAllUBooks(): List<Book>

}